package com.livedocumentation.client.web;

import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.livedocumentation.client.web.header.Header;

/**
 * Instructions for the application functions while using the it, to try solve
 * user problems.
 */
public class MainPage extends VerticalPanel {

	public static VerticalPanel documentationMenu = new VerticalPanel();
	public static VerticalPanel documentationPanel = new VerticalPanel();

	public MainPage() {

		this.setSpacing(10);

		// this.setTitle(HelpHint.getHelpHint(this.getClass()));

		this.add(new Header());

		HorizontalPanel hp = new HorizontalPanel();

		documentationMenu.clear();
		documentationMenu.setSize("280px", "100%");

		hp.add(documentationMenu);

		documentationPanel.clear();
		documentationPanel.setSize("100%", "100%");
		hp.add(documentationPanel);

		this.add(hp);

		RootPanel.get().add(this);
	}
}